home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ansi / smileq20.zip / ANSI.TXT next >
Text File  |  1992-06-12  |  4KB  |  133 lines

  1.  
  2.          S M I L E   S U P P O R T E D   A N S I   C O D E S
  3.  
  4.  
  5. "Esc" is used to denote a true ASCII Escape character throughout this
  6. document.  Normally text editors will display the Escape character as
  7. ^[ or a small arrow pointing left.  Most text editors allow typing
  8. an Escape character by one of the following methods:
  9.  
  10.    Hold the ALT key and type 27 on the keypad
  11.    Hold the CTRL key and press [
  12.    Precede the Escape key with a CTRL-KEY combination
  13.  
  14. For example, you may enter an ESC character in QEDIT by first pressing
  15. CTRL-P then ESC.  See your editor documentation for more information 
  16. on entering Escape sequences.
  17.       
  18.  
  19. Escape sequence parameters are case sensitive.
  20.  
  21.  
  22.  
  23.  
  24. SCREEN ATTRIBUTES ----------------------------------------------------
  25.  
  26. Syntax: Esc [#;#;...m
  27.  
  28. Where # parameters are one of the following numbers
  29.  
  30.    (ATTRIBUTES)
  31.  
  32. 0  All attributes off  (white on black)
  33. 1  Bold on             (High intensity)
  34. 4  Underscore on       (monochrome display only)       NOT SUPPORTED
  35. 5  Blink on
  36. 7  Reverse video on                                    NOT SUPPORTED
  37. 8  Concealed on                                        NOT SUPPORTED
  38.  
  39.    (FOREGROUND)   (with BOLD)
  40.  
  41. 30 Black           Dark Gray
  42. 31 Red             Light Red
  43. 32 Green           Light Green
  44. 33 Brown           Yellow
  45. 34 Blue            Light Blue
  46. 35 Magenta         Light Magenta
  47. 36 Cyan            Light Cyan
  48. 37 Gray            White
  49.  
  50.    (BACKGROUND)
  51.  
  52. 40 Black
  53. 41 Red
  54. 42 Green
  55. 43 Brown
  56. 44 Blue
  57. 45 Magenta
  58. 46 Cyan
  59. 47 Gray
  60.  
  61. EXAMPLES:  Esc [1;33;44m   Set colors (1)BOLD (33)YELLOW on (44)BLUE
  62.            Esc [0m         All attributes off, color to Black on white
  63.  
  64.  
  65.  
  66.  
  67. CURSOR CONTROL SEQUENCES ---------------------------------------------
  68.  
  69. Cursor Position:  Esc [r;cH  or  Esc [r;cf
  70.                   r = Row/line #
  71.                   c = Column #
  72.         EXAMPLE:  Esc [1,1H  or  Esc [H  Moves cursor to Row 1 Column 1
  73.         DEFAULT:  1         
  74.  
  75. Cursor Up      :  Esc [#A
  76.                   # = Number of rows/lines to move cursor
  77.         EXAMPLE:  Esc [5A   Move cursor UP 5 lines in the same column
  78.         DEFAULT:  1
  79.  
  80. Cursor Down    :  Esc [#B
  81.                   # = Number of rows/lines to move cursor
  82.         EXAMPLE:  Esc [5B   Move cursor DOWN 5 lines in the same column
  83.         DEFAULT:  1
  84.  
  85. Cursor Right   :  Esc [#C
  86.                   # = Number of columns to move cursor
  87.         EXAMPLE:  Esc [5C   Move cursor RIGHT 5 columns on the same line
  88.         DEFAULT:  1
  89.  
  90. Cursor Left    :  Esc [#D
  91.                   # = Number of columns to move cursor
  92.         EXAMPLE:  Esc [5A   Move cursor LEFT 5 columns on the same line
  93.         DEFAULT:  1
  94.  
  95. Save Cursor    :  Esc [s
  96.                   Saves cursor Row and Column infomation
  97.  
  98. Restore Cursor :  Esc [u
  99.                   Restores cursor position to value saved in
  100.                   Save Cursor sequence.
  101.  
  102.  
  103.  
  104.  
  105. SCREEN ERASE SEQUENCES -----------------------------------------------
  106.  
  107. Erase Display  :  Esc [2J
  108.                   Erase the screen and moves cursor to top left (HOME)
  109.           
  110. Erase Line     :  Esc [K
  111.                   Erase from cursor to the end of the line
  112.  
  113.  
  114.  
  115.  
  116. SET MODE and KEYBOARD REASSIGNMENT sequences are ignored by SMILE 
  117. programs so are not listed here.  See your DOS manual for more details.
  118.  
  119.  
  120.  
  121.  
  122. NOTES:
  123.  
  124. When uploading ANSI screens to bulletin boards make certain the file 
  125. ends with the sequence  ESC[0m  so that colors are reset.  Otherwise 
  126. you could leave the screen BLINKING or set to undesirable color 
  127. combinations.
  128.  
  129. Several combinations of line length and number of lines are supported 
  130. by various BBS software.  For best results, check with the SYSOP of 
  131. the board you will be uploading to.  Otherwise, for most consistant 
  132. results, save your ANSI screens at 70-72 characters per line.
  133.